package es.cazadoresmadridejos.beans.controller.map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MapProfileController {

	
	@RequestMapping("/mapProfile.html")
	public ModelAndView profile(@RequestParam(value="map") String map){
		ModelAndView mv = new ModelAndView();

		mv.addObject("image", map + ".jpg");
		
		return mv;
	}
}
